﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="panel1" runat="server">
<script type="text/javascript">
    function select_project(type) {
        document.getElementById('<%=产权人.ClientID %>').value="";
        document.getElementById('<%=承租人.ClientID %>').value="";
        document.getElementById('<%=txtZSPID.ClientID %>').value="";
        document.getElementById("tr2").style.display='none';
        var pid='<%=HttpContext.Current.Request["PID"] %>';
        var url = 'ZS_SelectUser.aspx?TYPE=' + type + '&pid='+pid+'&rd=' + Math.random();
        var feature = "dialogWidth:" + 500 + "px;dialogHeight:" + 450 + "px;scroll:yes;status:no;help:no;center:1";
        var project_info = window.showModalDialog(url, '', feature);
        if (project_info != undefined && project_info.length > 1) {
            document.getElementById('<%=txtZSPID.ClientID %>').value = project_info[0];
            if(project_info[1]!=" "&&project_info[1]!=""&&project_info[1]!=null){
                document.getElementById('<%=产权人.ClientID %>').value = project_info[1];
            }
            if(project_info[2]!=" "&&project_info[2]!=""&&project_info[2]!=null){
                document.getElementById('<%=承租人.ClientID %>').value = project_info[2];
                document.getElementById("tr2").style.display='block';
            }
        }
        if(document.getElementById('<%=承租人.ClientID %>').value!=null&&document.getElementById('<%=承租人.ClientID %>').value!=""){
            document.getElementById("tr2").style.display='block';
        }
    }
    function checkNull() {
        var t1 = document.getElementById('<%=产权人.ClientID %>').value;
        if (t1 == null || t1 == "") {
            alert('请点击选择人员进行人员绑定！');
            return false;
        } else {
        return true;
        }
    }
    function showw(){
        /*document.getElementById("chose1").style.visibility='hidden';*/
        document.getElementById("tr1").style.display='none';
        document.getElementById("tr2").style.display='none';
        document.getElementById("chose1").style.display='none';
    }
    function displaycc(){
        document.getElementById("chose1").style.display='none';
    }
    function dipsaytr(){
        document.getElementById("tr2").style.display='block';
    }
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
                <td valign="middle" height="30">
                    <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                        &nbsp;房间信息 </font>
                </td>
            </tr>
        </table>

        <table style="margin-top: 1px;border:#ff3300 0px solid;" class="window_tab_list" border="1" cellspacing="0" cellpadding="0" width="98%" align="center" >
            <tbody>
                <tr>
                    <th colspan="2" style="text-align: center; line-height: 20px;">
                        房间<asp:Label ID="房间号码" runat="server"></asp:Label>信息
                    </th>
                </tr>
                <tr>
                    <td style="text-align: right; width:44.5%;">
                        楼层房间号：
                    </td>
                    <td>
                        <asp:TextBox ID="txt楼层房间号" runat="server" Width="150px" onfocus="this.blur()"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        房屋类型：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl房屋类型" runat="server">
                            <%--<asp:ListItem Text="公租房"></asp:ListItem>
                            <asp:ListItem Text="限价房"></asp:ListItem>
                            <asp:ListItem Text="廉租房"></asp:ListItem>
                            <asp:ListItem Text="产权调换房"></asp:ListItem>
                            <asp:ListItem Text="经适房"></asp:ListItem>
                            <asp:ListItem Text="其它房源"></asp:ListItem>--%>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        房型：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddl房型" runat="server">
                           <%-- <asp:ListItem Text="一室一厅"></asp:ListItem>
                            <asp:ListItem Text="两室一厅"></asp:ListItem>
                            <asp:ListItem Text="三室一厅"></asp:ListItem>
                            <asp:ListItem Text="四室一厅"></asp:ListItem>--%>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td style="text-align: right">
                        建筑面积：
                    </td>
                    <td style="text-align: left">
                        <asp:TextBox ID="txt建筑面积" runat="server"></asp:TextBox>平方米
                    </td>
                </tr>
                <tr id="tr1">
                    <td style="text-align: right">
                        <asp:Label ID="label产权人" runat="server" Text="产权人："></asp:Label>
                    </td>
                    <td>
                       <asp:TextBox ID="产权人" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr id="tr2" style="display:none;">
                    <td style="text-align: right">
                        <asp:Label ID="label承租人" runat="server" Text="承租人："></asp:Label>
                    </td>
                    <td>
                       <asp:TextBox ID="承租人" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr id="oppanle">
                    <td colspan="2" align="center">
                        <input type="button" value="选择人员" onclick="select_project('bdry')" id="chose1" />&nbsp;&nbsp;
                        <asp:Button ID="btnSave" runat="server" Text="保存" />
                        <asp:Button ID="btnReturn" runat="server" Text="返回" />
                        <asp:Button ID="btnQKXY" runat="server" Text="签署协议" />
                        
                    </td>
                </tr>
            </tbody>
        </table>
            <div style="display:none;">
                <asp:TextBox ID="txtZSPID" runat="server"></asp:TextBox>
                <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
            </div>
    <CBW:MPPersistence  ID="Persistence1" runat="server"></CBW:MPPersistence>
</asp:Panel>